From 4555d43cbf95863bad80598b4c3be735858a560f Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Thu, 26 Feb 2015 20:21:18 +0530 Subject: [PATCH] Allow up to (and including) BABL_MAX_COMPONENTS --- babl/babl-model.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/babl/babl-model.c b/babl/babl-model.c index 91c57ee..fec5209 100644 --- a/babl/babl-model.c +++ b/babl/babl-model.c @@ -118,14 +118,12 @@ babl_model_new (void *first_argument, switch (bablc->class_type) { case BABL_COMPONENT: - component [components] = (BablComponent *) bablc; - components++; - if (components >= BABL_MAX_COMPONENTS) { babl_log ("maximum number of components (%i) exceeded for %s", BABL_MAX_COMPONENTS, assigned_name); } + component [components++] = (BablComponent *) bablc; break; case BABL_MODEL: -- 2.30.2